package com.dhcc.cdc.sys.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.cdc.busi.entity.CdcDictionaryEntity;
import com.dhcc.cdc.sys.entity.DictionaryEntity;
import com.dhcc.core.framework.base.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * 系统字典表数据服务层接口
 * 
 * @ClassName: IDictionaryService
 * @Description: TODO
 * @author jumper
 * @date 2021-04-16 17:11:56
 */
public interface IDictionaryService extends IBaseService<DictionaryEntity> {

    List<DictionaryEntity> page(Page<DictionaryEntity> page, Map<String, Object> map);

    List<DictionaryEntity> list(Map<String, Object> map);

    List<DictionaryEntity> queryByTypeCode(String productCode, String typeCode);

    DictionaryEntity queryByTypeCodeAndCode(String dataCode, String dicTypeCode, String typeCode);

    List<DictionaryEntity> pageByProductCodeAndTypeCode(Page<DictionaryEntity> page, Map<String, Object> params, String productCode, String typeCode);

    void compare(Long cdcSysDicId, Long cdcCtDicId);

    void undo(Long cdcSysDicId, Long cdcCtDicId);

    /**
     * 获取数据中心对照字典
     * @param dataCode
     * @param dicTypeCode
     * @param typeCode
     * @return
     */
    CdcDictionaryEntity getMatchCtDic(String dataCode, String dicTypeCode, String typeCode);

    String getMatchCtDicCode(String dataCode, String dicTypeCode, String typeCode);

    List<Long> selectMatchDicsub();
}
